//package com.relax.service.impl;
//
//import com.relax.order.feign.OrderFeign;
//import com.relax.pay.feign.PayFeign;
//import com.relax.service.SeataService;
//import io.seata.spring.annotation.GlobalTransactional;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
//@Service
//public class SeataServiceImpl implements SeataService {
//
//    @Autowired
//    private OrderFeign orderFeign;
//
//
//    @Autowired
//    private PayFeign payFeign;
//
//    @GlobalTransactional
//    @Override
//    public String updateForSeata(Integer id,boolean error) {
//        System.out.println("执行api方法");
//        orderFeign.updateForSeata(id);
//        payFeign.updateForSeata(id);
//        if(error){
//            int i = 1 / 0;
//        }
//        return null;
//    }
//}
